const {
    MathModel,
    LogService
} = require('./../service/index')
const {
    // BollStatus,
    StoreName,
    // OrderDirectionDesc
  } = require('./../constants')

const cacheBuildList = LogService.getJson(StoreName.BUILD_LIST)

const buildList = cacheBuildList.map((item, index) => ({
    ...item,
    realAvgPrice: MathModel.getAvgPrice(cacheBuildList, index + 1)
}))
console.log(buildList)